//
//  CellForFocusNewsListNoPhoto.m
//  世界
//
//  Created by dllo on 16/3/3.
//  Copyright © 2016年 admin. All rights reserved.
//

#import "CellForFocusNewsListNoPhoto.h"
#import "ModelForFocusNews.h"
#import <UIImageView+WebCache.h>

@interface CellForFocusNewsListNoPhoto ()

@property (nonatomic, retain) UILabel *lableForNewsSummary;
@property (nonatomic, retain) UILabel *lableForTitle;

@end

@implementation CellForFocusNewsListNoPhoto


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self != nil)
    {
        self.lableForNewsSummary = [[UILabel alloc] init];
        
        [self.contentView addSubview:self.lableForNewsSummary];
        
        self.lableForNewsSummary.numberOfLines = 0;
        
        self.lableForTitle = [[UILabel alloc] init];
        
        self.lableForNewsSummary.textColor = [UIColor lightGrayColor];
        
        [self.contentView addSubview:self.lableForTitle];
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    self.lableForNewsSummary.frame = CGRectMake(10, 30, self.contentView.frame.size.width - 30, 60);
    
    self.lableForTitle.frame = CGRectMake(10, 10, self.contentView.frame.size.width - 30, 20);
}


- (void)handleData:(ModelForFocusNews *)model
{
    self.lableForTitle.text = model.Title;
    
    self.lableForNewsSummary.text = model.NewsSummary;
}



- (void)awakeFromNib
{
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    
}

@end
